const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  // 通过用户信息里是否存在id  判断用户是否已经登录
  isLogin: state => state.user.userInfo.userId,
  // 用户信息
  userInfo: state => state.user.userInfo
}
export default getters
